home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19981211-19990422
/
000200_news@watsun.cc.columbia.edu _Tue Feb 9 15:23:40 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@watsun.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA23606
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 9 Feb 1999 15:23:39 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA23236
for kermit.misc@watsun.cc.columbia.edu; Tue, 9 Feb 1999 15:06:21 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: "Gregory I. Hayes" <gihayes@bellsouth.net>
Subject: Need Help Using Kermit as a non-root user
Date: Tue, 9 Feb 1999 13:52:00 -0600
Organization: AccessCom, THE New Orleans Internet Provider
Message-ID: <79q2oq$1m0$1@ux2.accesscom.net>
To: kermit.misc@mailrelay2.cc.columbia.edu
I am using aix 4.1.5.0. and C-Kermit 6.0.192. I have a C-Kermit script
called /usr/local/call-medb that dials out and transfers data to a remote
location and then recieves a response file. When it is run by root, it works
fine. The device that is being used for dial out is /dev/tty2. The problem I
am having is that tty2 is owned and in the group uucp. Whenever I try to run
the script with this setting not as root, I get the following error:
Command file: /usr/local/call-medb, line 7
/dev/tty2: Permission denied
Sorry, access to device denied: /dev/tty2
?Sorry, you must SET LINE first
Sorry, you must SET LINE or SET HOST first
I tried setting the suid bit for the script and set the owner as root
hoping this would give the script permission to do anything but it still
gives the error. If I manually change the owner of tty2 to root and its
group to system, It works fine ...but... the next time I run the script, the
owner and group have been changed back to uucp. Nothing is using the line
between dial outs. It is sometime used as a dial-in line, but this is rare.
I have tried manually setting tty2 to crw-rw-rw. And this works...but ...
when the script is finished it is changed to crw-rw--w- and the scrip fails
when it is run. I have attempted to change the condition of tty2 via a unix
chmod or chown or chgrp from kermit, but I get an error stating that this is
not allowed. I've tried everything I know of Any one outthere have any idea
why tty2 is being changed or how I can let a non root user run it ? The
script is below:
#!/usr/local/bin/kermit
#run chmod a+rw /dev/tty2
cd /lin1/usr/ebill/mc
log trans meb.transactions append
set session log text
set flow xon/xoff
set modem type multitech
set modem maximum-speed 19200
set modem dial-command ATDT%s\{13}
set line /dev/tty2
set speed 19200
set dial retries 100
set dial interval 10
set terminal autodownload on
# NOTE - Unix Kermit expects files to be terminated in LF only
# our files are terminated in CRLF, hence the following line
# [HERBR] 12-23-98
set file type text
#set file end-of-line lf
log session medb.session append
delete response.emc
dial 9,12252312251
input 360 Quit
output 4\13
input 5 ...
#send /lin1/usr/ebill/mc/medpartb
send medpartb
input 360 (Y/N)
output Y
#receive /lin1/usr/ebill/mc/response.emc
receive response.emc
hangup
set line
run /usr/local/reset.tty2
exit
Gregory I. Hayes
gihayes@bellsouth.net